{include file='header.tpl'}
{include file='nav-admin.tpl'}
<h1 id="pagename">{$Title}</h1>
<form action="/role/edit" method="post">
<div>
    <label for="shortname">Role</label>
    <input type="text" name="shortname" 
        value="{$Roles.shortname}"/>
</div>
<div>
    <label for="description">Description</label>
    <input type="text" name="description" 
        value="{$Roles.description}"/>
</div>

<div>
    <label for="inherits_id">Inherits</label>
	{html_options name='inherits_id' options=$AllRoles selected=$Roles.inherits_id}
</div>
{if $Roles.isadmin eq false}
<div>
    <label for="isguest">Guest</label>
	{html_options name='isguest' options=$YesNo selected=$Roles.isguest}
</div>
{/if}
{if $Roles.isguest eq false}
<div>
    <label for="isadmin">Admin</label>
	{html_options name='isadmin' options=$YesNo selected=$Roles.isadmin}
</div>
{/if}

<div>
    <label for="isdefault">Default</label>
	{html_options name='isdefault' options=$YesNo selected=$Roles.isdefault}
</div>

<div>
    <label for="isvisible">Visible</label>
	{html_options name='isvisible' options=$YesNo selected=$Roles.isvisible}
</div>

<input type="hidden" name="id" value="{$Roles.id}" />
<button type="submit" id="edit">Edit</button>

</form>
{include file='footer.tpl'}